package com.jinunn.system.model.params;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author Jindun
 * @version UpdatePwdParam.java, v0.1 2024年 07⽉ 11⽇  下午6:33 Jindun Exp $
 */
@Data
@Accessors(chain = true)
public class UpdatePwdParam implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @NotNull(message = "用户id不能为空")
    private Long userId;

    @NotBlank(message = "用户密码不能为空")
    private String password;
}
